<!DOCTYPE html>
<html>
<head>
    <title>客户详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h1 class="page-title">客户详情</h1>
        <div class="nav-menu">
            <a href="{{ url_for('customers') }}" class="nav-item">返回客户列表</a>
        </div>
        
        <div class="section">
            <h2>基本信息</h2>
            <p>客户名称：{{ customer.name }}</p>
            <p>联系电话：{{ customer.phone }}</p>
        </div>

        <div class="section">
            <h2>名下车辆</h2>
            <table>
                <thead>
                    <tr>
                        <th>车型</th>
                        <th>车牌号</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    {% for vehicle in customer.vehicles %}
                    <tr>
                        <td>{{ vehicle.model }}</td>
                        <td>{{ vehicle.plate_number }}</td>
                        <td>{{ vehicle.notes }}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</body>
</html> 